package com.demo.test.abstractFectory;

import com.demo.test.abstractFectory.abs.TVElectric;
import com.demo.test.abstractFectory.abs.WashingElectric;
import com.demo.test.abstractFectory.iml.Factory;

public class WuHanFactory implements Factory {

    @Override
    public TVElectric createTVElectric() {
        System.out.println("武汉工厂生产的电视：");
        return new TVLGElectric();
    }


    @Override
    public WashingElectric createWashingElectric() {
        System.out.println("武汉工厂生产的洗衣机：");

        return new WashingXiaomiElectric();
    }
}
